package com.project_test.kun.travelling_1st.HomePage.category;

import org.json.JSONException;
import org.json.JSONObject;

import java.io.Serializable;

/**
 *  Created by Administrator on 16-10-17.
 */
public class mandate_HPHouseDetail implements Serializable {

    private int mId;
    private String mName;
    private int mPid;
    private String mIcon;
    private int mStatus;

    public void pashJson(JSONObject json) throws JSONException {
//    "id": "92",
        mId = json.getInt("id");
//            "name": "是否允许中途加客",
        mName = json.getString("name");
//            "pid": "61",
        mPid = json.optInt("pid");
//            "icon": "",
        mIcon = json.optString("icon");
//            "status": "0"
        mStatus = json.getInt("status");
    }

    public int getId() {
        return mId;
    }

    public String getName() {
        return mName;
    }

    public int getPid() {
        return mPid;
    }

    public String getIcon() {
        return mIcon;
    }

    public int getStatus() {
        return mStatus;
    }

    @Override
    public String toString() {
        return "mandate_HPHouseDetail{" +
                "mId=" + mId +
                ", mName='" + mName + '\'' +
                ", mPid=" + mPid +
                ", mIcon='" + mIcon + '\'' +
                ", mStatus=" + mStatus +
                '}';
    }
}
